﻿using System;

namespace Ex5PriorityQueue
{
    class TestQueue
    {
        static void Main()
        {
            PriorityQueue<int> opashka = new PriorityQueue<int>();
            opashka.Enqueue(3);
            opashka.Enqueue(4);
            opashka.Enqueue(2);
            opashka.Enqueue(1);
            opashka.Enqueue(8);
            foreach (var item in opashka)
            {
                Console.WriteLine(item);
            }
            Console.WriteLine("\n{0}",opashka.Dequeue());
            Console.WriteLine(opashka[0]);
        }
    }
}
